import service from "../utils/request";
//列表
export function conpon_list(payload={}){
    return service.get('/conpon',{params:payload})
}
//添加
export function conpon_add(payload={}){
    return service.post('/conpon',payload)
}
//删除
export function conpon_del(payload={}){
    return service.delete('/conpon/'+payload.id,payload)
}
//停用
export function conpon_xiu(payload={}){
    return service.patch('/conpon/'+payload.id,payload)
}
//查询单个商品
export function conpon_info( payload = {} ){
    return service.get('/conpon/'+payload.id, { params: payload  } );
}
//查询
export function conpon_list4( payload = {} ){
    return service.get('/conpon', { params: payload  } );
}
//编辑
export function conpon_list2( payload = {} ){
    return service.push('/conpon', { params: payload  } );
}
